package com.wave.system.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 设备状态视图对象 sys_device_status
 *
 * @author wave
 * @date 2024-10-12
 */
@Data
@ExcelIgnoreUnannotated
public class SysDeviceStatusVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 设备名称
     */
    @ExcelProperty(value = "设备名称")
    private String deviceName;

    /**
     * 设备状态 0-正常，1-异常
     */
    @ExcelProperty(value = "设备状态 0-正常，1-异常")
    private Integer deviceStatus;

    /**
     * 异常原因
     */
    @ExcelProperty(value = "异常原因")
    private String abnormalCause;

    /**
     *
     */
    @ExcelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

}
